﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Script" Object="Template.Script" Operation="Get(Request.QueryString['TemplatePath'], Request.QueryString['Name'])" Validate="True" />
<section data-page="template_script_edit" data-title="编辑脚本" data-lang="<%=ContentLang%>" data-template-path="<%=Request.QueryString["TemplatePath"]%>" data-id="<%=Request.QueryString["Name"]%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="../list.aspx" target="ali-navtab">模板列表</a> → <%=Request.QueryString["TemplatePath"]%></dt>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="../edit.aspx?Path=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">编辑</a></li>
							<li><a href="../dictionary.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">词典</a></li>
							<li><a href="../module.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">模块邦定</a></li>
							<li><a href="../pages/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">页面列表</a></li>
							<li><a href="../pages/add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">添加页面</a></li>
							<li><a href="list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">脚本列表</a></li>
							<li><a href="add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">添加脚本</a></li>
							<li class="ali-active"><a>编辑脚本</a></li>
							<li><a href="../menu/list.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">模块菜单</a></li>
							<li><a href="../menu/add.aspx?TemplatePath=<%=Request.QueryString["TemplatePath"]%>" target="ali-navtab">添加菜单</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>文件名：</th>
								<td><%=Request.QueryString["Name"]%></td>
							</tr>
							<tr>
								<td colspan="2" style="text-align:center"><textarea name="Content" rows="30" wrap="off" class="ali-input" style="width:98%;font-family:Arial, Helvetica, sans-serif"><%=HttpUtility.HtmlEncode(Convert.ToString(Script[Content]))%></textarea></td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>